package com.project.bean;

import java.util.List;

/**
 * 角色实体类
 */
public class RoleBean {
    /**编号*/
    private int id;
    /**名称*/
    private String name;
    /**权限集合*/
    private List<GradeBean> gradeList;

    public RoleBean(String name) {
        this.name = name;
    }

    public RoleBean() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<GradeBean> getGradeList() {
        return gradeList;
    }

    public void setGradeList(List<GradeBean> gradeList) {
        this.gradeList = gradeList;
    }

    @Override
    public String toString() {
        return "RoleBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gradeList=" + gradeList +
                '}';
    }
}
